/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package researchgrants.parts.panelsManager;

import researchgrants.parts.panels.PanelsCompoundView;
import researchgrants.parts.panels.Panels;

/**
 *
 * @author DOStudent1
 */
public class CompoundDataPanelsManager extends PanelsManager {

    @Override
    public void display() {
        removeAll();
        add(((PanelsCompoundView)panels).getComponent());
        updateDisplay();
    }

    @Override
    public void setPanels(Panels panels) {
        if (!(panels instanceof PanelsCompoundView)) {
            throw new UnsupportedOperationException("CompoundDataPanelsManager must be initialized using CompoundViewPanel");
        }
        super.setPanels(panels);
    }

    @Override
    public void startAsNew(boolean isNew) {
//        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setMandatory(boolean isMandatory) {
//        throw new UnsupportedOperationException("Not supported yet.");
    }

    
    
}
